class Student:
    company = "ZJH"  # 类属性

    @classmethod
    def printCompany(cls): #类方法的第一个参数是 cls，代表类本身
        print(cls.company)

    @staticmethod
    def add(a, b):  # 静态方法
        print("{0}+{1}={2}".format(a, b, (a + b)))
        return a + b


Student1 =  Student
Student1.printCompany()
Student1.add(10, 20)
# ZJH
# 10+20=30
Student.printCompany()
Student.add(20, 30)
# ZJH
# 20+30=50